package database;

import java.util.*;

public class Table {
	private List<Row> _rows;
	private List<Field> _fields;
	private String _name;
	public Table() {
		_rows = new ArrayList<Row>();
		_fields = new ArrayList<Field>();
	}
	
	public Table(String name, List<Field> field, List<Row> row){
		_name = name;
		_rows = row;
		_fields = field;
	}

	/**
	 * @return the _rows
	 */
	public List<Row> get_rows() {
		return _rows;
	}

	/**
	 * @param _rows the _rows to set
	 */
	public void set_rows(List<Row> _rows) {
		this._rows = _rows;
	}

	/**
	 * @return the _fields
	 */
	public List<Field> get_fields() {
		return _fields;
	}

	/**
	 * @param _fields the _fields to set
	 */
	public void set_fields(List<Field> _fields) {
		this._fields = _fields;
	}

	/**
	 * @return the _name
	 */
	public String get_name() {
		return _name;
	}

	/**
	 * @param _name the _name to set
	 */
	public void set_name(String _name) {
		this._name = _name;
	}
	
	@Override
	public String toString() {
		return _name;
	}
}
